package com.pf.common.helper;

import com.pf.dto.AuditTaskDO;
import org.assertj.core.util.Lists;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2022/11/27 16:08
 */
public class AuditTaskDataHelper {

    /**
     * 获取审核任务数据
     *
     * @return
     */
    public static List<AuditTaskDO> getAuditTaskList() {
        AuditTaskDO task1 = AuditTaskDO.builder().taskCode("QTX20221115000001").criteriaName("准则1").criteriaType("其他审核").greeter("lwx lisi").reviewPerson("lisi").planFinishDate("2022-11-27").checkItem("检查项1").build();
        AuditTaskDO task2 = AuditTaskDO.builder().taskCode("QTX20221115000002").criteriaName("准则2").criteriaType("智选审核").greeter("lisi").reviewPerson("wangwu").planFinishDate("2022/11/26").checkItem("检查项1").build();
//        AuditTaskDO task3 = AuditTaskDO.builder().taskCode("QTX20221115000003").criteriaName("准则3").criteriaType("其他审核").greeter("zhangsan").reviewPerson("wangwu").planFinishDate("20221127").checkItem("检查项1").build();
//        AuditTaskDO task4 = AuditTaskDO.builder().taskCode("QTX20221115000004").criteriaName("准则4").criteriaType("车规审核").greeter("lisi").reviewPerson("wanger").planFinishDate("2022 11 24").checkItem("检查项1").build();
//        List<AuditTaskDO> auditTaskList = Lists.newArrayList(task1, task2, task3, task4);
        List<AuditTaskDO> auditTaskList = Lists.newArrayList(task1, task2);
        return auditTaskList;
    }

    /**
     * 获取有效的审核任务code
     *
     * @return
     */
    public static List<String> getValidTaskCodeList() {
        return Lists.newArrayList("QTX20221115000001", "QTX20221115000002");
    }

    public static List<String> getCriteriaNameList() {
        return Lists.newArrayList("准则1", "准则2", "准则3", "准则4");
    }

    public static List<String> getCriteriaTypeList() {
        return Lists.newArrayList("智选审核", "其他审核", "车规审核");
    }

    public static Map<String, String> getAccountMap() {
        Map<String, String> accountMap = new HashMap<>();
        accountMap.put("zhangsan", "zwx zhangsan");
        accountMap.put("lisi", "lwx lisi");
        accountMap.put("wangwu", "wwx wangwu");
        return accountMap;
    }


}
